package com.cui.project.service;

import com.api.common.model.entity.InterfaceInfo;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cui.project.model.dto.interfaceInfo.InterfaceInfoQueryRequest;
import com.cui.project.model.vo.InterfaceInfoRandVO;

import java.util.List;


/**
* @author 86176
* @description 针对表【interface_info(接口信息)】的数据库操作Service
* @createDate 2024-09-26 11:22:31
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {
    /**
     * 校验
     *
     * @param add 是否为创建校验
     */
    void validInterfaceInfo(InterfaceInfo interfaceInfo, boolean add);

    List<InterfaceInfoRandVO> rand(Integer size);

    Page<InterfaceInfo> searchFromEs(InterfaceInfoQueryRequest interfaceInfoQueryRequest);

    List<InterfaceInfo> getNames(Long userId);

    boolean isInfo(Long userId,Long interfaceId);

    List<Long> useInterfaceIds(Long userId);
}
